import com.losttemple.sql.language.operator.DbSource
import com.losttemple.sql.language.operator.TableConfigure
import com.losttemple.sql.language.types.SetRef

class SOrder(set: (TableConfigure.() -> Unit) -> SetRef) :
        DbSource(set { tableName("s_order") }) {
    var id = intColumn("id")
    var gmtCreate = dateColumn("gmt_create")
    var gmtModify = dateColumn("gmt_modify")
    var hasPayed = intColumn("has_payed")
    var userId = stringColumn("user_id")
    var userPhoneNum = stringColumn("user_phone_num")
    var userNickName = stringColumn("user_nick_name")
    var orderNo = stringColumn("order_no")
    var roomId = intColumn("room_id")
    var payAmount = doubleColumn("pay_amount")
    var payType = intColumn("pay_type")
    var payDetail = stringColumn("pay_detail")
    var callbackMsg = stringColumn("callback_msg")
    var type = intColumn("type")
}